/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.ad.feedsreader.actions;

import com.opensymphony.xwork2.ActionSupport;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;

/**
 *
 * @author sexta13
 */
public class LogoutAction  extends ActionSupport implements SessionAware
{
    /**
	 * 
	 */
	private static final long serialVersionUID = -8813283664490715095L;
	private Map<String, Object> session;
    
    @Override
    public String execute() throws Exception {
        
        getSession().clear();
        return SUCCESS;
        
    }

    public Map<String, Object> getSession() {
        return session;
    }

    @Override
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }
    
    
}
